package priv.pront.code.mati.province;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-11-15 15:54
 */
public class MC0120_码哥猜想 {

    public static void main(String[] args) {
        for (int i = 1; i < 101; i++) {
            boolean flag = check(i);
            if(flag) System.out.print(i + " ");
        }
    }

    private static boolean check(int i) {
        if(i > 10000000) return false;
        if(i == 1) return true;
        if(i % 2 != 0){
            i  = i * 5 - 1;
        }else{
            i >>= 1;
        }
        return check(i);
    }
}
